package com.vchello.bean.pro;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.vchello.bean.user.User;
import com.vchello.bean.user.UserProgress;

/**
 * 
 * @author power
 * 用户进度
 */
@TableName("project_change")
public class ProjectChange extends Model<ProjectChange> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1214284688044194199L;

	@TableId("id")
	private int id;
	
	@TableField("user_id")
	private int userId;
	
	@TableField("parent_user_id")
	private int parentUserId;
	
	@TableField("project_id")
	private int projectId;
	
	@TableField("user_progress_id")
	private int userProgressId;

	@TableField(exist = false)
	private User user;

	@TableField(exist = false)
	private User parentUser;

	@TableField(exist = false)
	private Pro pro;

	@TableField(exist = false)
	private UserProgress userProgress;
	
	public ProjectChange() {
		super();
	}

	public ProjectChange(int userId, int parentUserId, int projectId, int userProgressId) {
		super();
		this.userId = userId;
		this.parentUserId = parentUserId;
		this.projectId = projectId;
		this.userProgressId = userProgressId;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getParentUserId() {
		return parentUserId;
	}

	public void setParentUserId(int parentUserId) {
		this.parentUserId = parentUserId;
	}

	public int getProjectId() {
		return projectId;
	}

	public void setProjectId(int projectId) {
		this.projectId = projectId;
	}

	public int getUserProgressId() {
		return userProgressId;
	}

	public void setUserProgressId(int userProgressId) {
		this.userProgressId = userProgressId;
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public User getParentUser() {
		return parentUser;
	}

	public void setParentUser(User parentUser) {
		this.parentUser = parentUser;
	}

	public Pro getPro() {
		return pro;
	}

	public void setPro(Pro pro) {
		this.pro = pro;
	}

	public UserProgress getUserProgress() {
		return userProgress;
	}

	public void setUserProgress(UserProgress userProgress) {
		this.userProgress = userProgress;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}
}